//
// Created by shen on 2024/12/18.
//

#ifndef AEDIT_JAVACALLHELPER_H
#define AEDIT_JAVACALLHELPER_H
#include <jni.h>
#include "log.h"

#define THREAD_MAIN  1
#define THREAD_CHILD  2
class JavaCallHelper {
public:
    JavaCallHelper(JavaVM *_javaVM,JNIEnv *_env,jobject &_jobj);

    ~JavaCallHelper();




    void onPrepare(int thread = THREAD_MAIN);
    void onLoadMessage(int code,int thread = THREAD_MAIN);
private:
    JavaVM *javaVm;
    jobject jobj;
    jmethodID jmid_prepera;
    JNIEnv *env;

};


#endif //AEDIT_JAVACALLHELPER_H
